package com.zhang.servicepay.service;

import com.zhang.internalcommon.dto.OrderRequest;
import com.zhang.servicepay.remote.ServiceOrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-20
 */
@Service
public class AlipayService {
	@Autowired
	ServiceOrderClient serviceOrderClient;

	public void pay(Long orderId){
		OrderRequest orderRequest = new OrderRequest();
		orderRequest.setOrderId(orderId);
		serviceOrderClient.pay(orderRequest);
	}
}
